<template>
  <div>
    <el-menu
      :default-active="activeIndex"
      class="el-menu-demo"
      mode="horizontal"
      :ellipsis="false"
      @select="handleSelect"
      style="height: 100%"
    >
      <el-menu-item index="0">
        <img
          src="https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web/e08da34488b114bd4c665ba2fa520a31.svg"
          alt=""
        />
      </el-menu-item>
      <el-menu-item index="1">首页</el-menu-item>
      <el-menu-item index="2">沸点</el-menu-item>
      <el-menu-item index="3">课程</el-menu-item>
      <el-menu-item index="4">直播</el-menu-item>
      <el-menu-item index="5">活动</el-menu-item>
      <el-menu-item index="6">商城</el-menu-item>
      <div class="flex-grow" />
      <el-menu-item class="one" style="height: 50%">
        <el-input v-model="input3" placeholder="Please input" class="input-with-select">
          <template #append>
            <el-icon class="Search" style="vertical-align: middle">
              <Search />
            </el-icon>
          </template>
        </el-input>
      </el-menu-item>
      <el-menu-item class="one"
        ><el-button type="primary" size="large">创作者中心</el-button></el-menu-item
      >
      <el-menu-item class="one"
        ><img
          src="https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web/24127194d5b158d7eaf8f09a256c5d01.svg"
          alt=""
        /><span>会员</span></el-menu-item
      >
      <el-menu-item class="one"><el-avatar> user </el-avatar></el-menu-item>
    </el-menu>
  </div>
</template>

<script>
import { Search } from '@element-plus/icons-vue';
export default {};
</script>

<style>
div {
  height: 100%;
}
.flex-grow {
  flex-grow: 1;
}
.el-menu--horizontal >>> .el-menu-item {
  height: 0%;
}

li.el-menu-item.is-active.one {
  border-bottom: 0px;
  text-decoration: none;
}
</style>
